package com.tt.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tt.entity.pojo.EchartsMapBoxOfficePO;
import com.tt.entity.vo.EchartsMapBoxOfficeVO;
import com.tt.mapper.EchartsMapBoxOfficePOMapper;
import com.tt.mapper.EchartsMapBoxOfficeVOMapper;
import com.tt.service.EchartsMapBoxOfficeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * Echarts各省每周票房情况地图.需要定期更新.	每次更新已有内容即可. 服务实现类
 * </p>
 *
 * @author TP
 * @since 2023-03-04 09:14:11
 */
@Service
public class EchartsMapBoxOfficeServiceImpl extends ServiceImpl<EchartsMapBoxOfficePOMapper, EchartsMapBoxOfficePO> implements EchartsMapBoxOfficeService {
    private final EchartsMapBoxOfficeVOMapper echartsMapBoxOfficeVOMapper;
    public EchartsMapBoxOfficeServiceImpl(EchartsMapBoxOfficeVOMapper echartsMapBoxOfficeVOMapper) {
        this.echartsMapBoxOfficeVOMapper = echartsMapBoxOfficeVOMapper;
    }

    @Override
    public ArrayList<EchartsMapBoxOfficeVO> getEchartsMap() {
        return new ArrayList<>(echartsMapBoxOfficeVOMapper.selectList(new QueryWrapper<>()));
    }
}
